<?php
namespace common\enum;

/**
 * 钱包转账记录
 * Class MoneyDepositEnum
 * @package common\enum
 */
class MoneyTransferEnum
{
    //待处理
    const TRANSFER_STATUS_PENDING = 0;
    // 状态：转账成功
    const TRANSFER_STATUS_SUCCESS = 1;
    // 状态：转账失败
    const TRANSFER_STATUS_FAILED = 2;
    // 状态：第三方转账成功
    const TRANSFER_STATUS_SUCCESS_PARTNER = 3;
    // 状态：本地处理失败
    const TRANSFER_STATUS_FAILED_LOCAL = 4;
    // 状态 异常转账
    const TRANSFER_STATUS_EXCEPTION = 100;

    // 1 由主钱包转子钱包，2 由子钱包转主钱包
    const TRANSFER_TYPE_MAIN2PARTNER = 1;
    const TRANSFER_TYPE_PARTNER2MAIN = 2;

    //转账状态描述
    const TRANSFER_STATUS_DES = [
        self::TRANSFER_STATUS_PENDING => '待处理',
        self::TRANSFER_STATUS_SUCCESS => '成功',
        self::TRANSFER_STATUS_FAILED => '失败',
        self::TRANSFER_STATUS_EXCEPTION => '异常',
    ];
}